import request from "@/utils/request";
export default {
  //登录
  submitLogin(userInfo) {
    return request({
      url: `/api/ucenter/user/login`,
      method: "post",
      data: userInfo
    });
  },
  //根据token获取用户信息
  getLoginInfo() {
    return request({
      url: `/api/ucenter/user/auth/getLoginInfo`,
      method: "get"
    });
  },
  //腾讯防水墙票据验证
  checkTicket(randstr,ticket) {
    return request({
      url: `/api/ucenter/user/checkTicket/${randstr}/${ticket}`,
      method: "get"
    });
  }
};
